package kr.or.kead.ui.list.model;

public class RequestCourseCustomTableModel extends AbsCustomTableModel {
	
	public RequestCourseCustomTableModel() {
		sql="select 번호,학생이름, 과목명,교재,학과,담당교사  from view_request_infostd_course";
		getResultSet();
	}
	
	public RequestCourseCustomTableModel(int level, String email) {
		String where = (level==1)?" where 학생Email='"+email+"'":" where 교사Email='"+email+"'";
		sql="select 번호,학생이름, 과목명,교재,학과,담당교사  from view_request_infostd_course" + where;
		getResultSet();
	}

	@Override
	public Object getValueAt(int row, int col) {
		Object[] reqCor = arData.get(row);
		return reqCor[col];
	}
}
